package org.example.cassell_admin.service;

import org.example.cassell_admin.entity.AdminUser;
import org.example.cassell_admin.repository.AdminRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminRepository adminRepository;
    @Override
    public AdminUser findUserByEmail(String UserEmail) {
        AdminUser u= adminRepository.findUserByEmail(UserEmail);
        return u;
    }

}
